@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/discount/discount_add.js"]}){
<form id="discountForm" lay-filter="discountForm" class="layui-form model-form">
    <input name="id" type="hidden"/>
    <div class="layui-form-item">
        <label class="layui-form-label">类型<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <select id="type" name="type">
                <option value="1">满减券</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="name" name="name" placeholder="请输入名称" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">描述<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <textarea id="description" name="description" placeholder="请输入描述" type="text" class="layui-textarea" lay-verify="required" required > </textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">将发放总数<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="amountTotal" name="amountTotal" placeholder="请输入将发放总数" type="number" min="1" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">每人限领<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="amountPer" name="amountPer" placeholder="请输入每人限领" type="number" min="1" class="layui-input" lay-verify="required" required/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">满减金额<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="leastPrice" name="leastPrice" placeholder="请输入满减金额" type="number" min="1" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">优惠金额<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="discountPrice" name="discountPrice" placeholder="请输入优惠金额" type="number" min="1" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">使用期限(天数)<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="termDay" name="termDay"  placeholder="请输入使用期限(天数)" type="number" min="1"  class="layui-input" lay-verify="required" required />
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">生效时间<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="effectiveTime" name="effectiveTime" placeholder="请输入生效时间" type="text" class="layui-input" lay-verify="required|timeMin" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">过期时间<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="expireTime" name="expireTime" placeholder="请输入过期时间" type="text" class="layui-input" lay-verify="required|timeMin" required/>
        </div>
    </div>
    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}